package org.shunya.duplicatefileperquisitor.model;

import javafx.beans.property.SimpleBooleanProperty;

public class FileTypeExtensions {
    private SimpleBooleanProperty selected = new SimpleBooleanProperty(false);
    private String description;
    private String extensions;

    public FileTypeExtensions(String description, String extensions) {
        this.description = description;
        this.extensions = extensions;
    }

    public boolean isSelected() {
        return selected.get();
    }

    public SimpleBooleanProperty selectedProperty() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected.set(selected);
    }


    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getExtensions() {
        return extensions;
    }

    public void setExtensions(String extensions) {
        this.extensions = extensions;
    }

    public String getFileTypesWithExtensions() {
        return description + " | " + extensions;
    }
}
